<template>
	<view class="page-wrapper">
		<div class="content">
			<h3>充值金额</h3>
			<div class="input-wrapper">
				<span>￥</span>
				<input v-model="value" autoFocus="true" class="am-edit-value" type="digit" ></input>
			</div>
			<p>微信支付限额3000，如需大额充值请分多次完成</p>
		</div>
		<button @click="submit">确认充值</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: null
			}
		},
		methods: {
			submit() {
				console.log('充值' + this.value)
			}
		}
	}
</script>

<style scoped>
	.page-wrapper {
		box-sizing: border-box;
		padding: 30rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		
	}
	.content {
		background-color: #ffffff;
		border-radius: 20rpx;
		box-sizing: border-box;
		padding: 30rpx;
		width: 100%;
	}

	.content>h3 {
		font-size: 30rpx;
		color: #333333;
		
	}
	.content>p {
		font-size: 22rpx;
		color: #999999;
		margin-top: 30rpx
	}
	
	.input-wrapper {
		width: 100%;
		display: flex;
		align-items: center;
		/* justify-content: center; */
		height: 150rpx;
	}
	.input-wrapper>span {
		height: 100%;
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 150rpx;
		font-size: 38rpx;
		color: #333333;
		box-sizing: border-box;
		border-bottom: 1rpx solid #eeeeee;
	}
	.input-wrapper>input {
		height: 100%;
		flex-grow: 1;
		padding-left: 20rpx;
		font-size: 68rpx;
		font-weight: bold;
		box-sizing: border-box;
		border-bottom: 1rpx solid #eeeeee;
	}
	
	.page-wrapper>button {
		background-image: linear-gradient(to right, #0973F7, #0286FA);
		width: 602rpx;
		height: 90rpx;
		border-radius: 45rpx;
		border:none;
		color: #ffffff;
		margin-top: 60rpx;
		font-size: 34rpx;
	}
	
	
</style>
